package com.foreknow.demo5;

public class Suibianqi {
    public static void main(String[] args) {

        Singleton singleton = Singleton.getInstance();
        singleton.setName("tom");
        System.out.println(singleton.getName());

        Singleton sin = Singleton.getInstance();
        sin.setName("tsc");
        System.out.println(sin.getName());
    }
}
